package ihmprojet.core.model;

import java.io.Serializable;

/**
 *
 * @author Rémi PIOTAIX <remi.piotaix@gmail.com>
 */
public class GraphOperator<V, E> implements Serializable {

    private V source;
    private V cible;
    private E edge;

    public GraphOperator(V source, V cible, E edge) {
        this.source = source;
        this.cible = cible;
        this.edge = edge;
    }

    public void setSource(V source) {
        this.source = source;
    }

    public void setCible(V cible) {
        this.cible = cible;
    }

    @Override
    public String toString() {
        return edge.toString();
    }

    public V getSource() {
        return source;
    }

    public V getCible() {
        return cible;
    }

    public E getEdge() {
        return edge;
    }
}
